
function Demo(target: object, propertyKey: string, descriptor: number) {
    console.log(target, propertyKey, descriptor)
}

class Weather {
    private _temp: number
    constructor(_temp: number) {
        this._temp = _temp
    }
    speak(@Demo text: string) {
        console.log(text)
    }
}

const aa = new Weather(150)
aa.speak("word")
console.log(aa)


